package com.ss.android.article.base.ui;

import android.content.Context;
import android.util.AttributeSet;

import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.base.app.AppData;
import com.ss.android.article.browser.R;

public class AdButtonDetailLayout extends AdButtonLayout {
    public AdButtonDetailLayout(Context arg1) {
        super(arg1);
    }

    public AdButtonDetailLayout(Context arg1, AttributeSet arg2) {
        super(arg1, arg2);
    }

    public AdButtonDetailLayout(Context arg1, AttributeSet arg2, int arg3) {
        super(arg1, arg2, arg3);
    }

    protected final void a(boolean arg4) {
        AppData.getInstance();
        AppData.isNightMode();
        if(arg4) {
            UIUtils.setVisibility(this.c, 0);
            this.d.setTextColor(this.getResources().getColor(com.ss.android.article.browser.R.color.ssxinzi8));
            UIUtils.setBackgroundResource(this.b, R.color.transparent);
        }
        else {
            UIUtils.setVisibility(this.c, 8);
            this.d.setTextColor(this.getResources().getColor(com.ss.android.article.browser.R.color.ssxinzi5));
            UIUtils.setBackgroundResource(this.b, R.drawable.ad_action_btn_begin_bg);
        }
    }

    protected final boolean a() {
        return false;
    }

    protected final void b() {
    }

    public final void b(boolean arg1) {
    }

    protected String getEventName() {
        String v0;
        if("app".equals(this.e.type)) {
            v0 = "detail_download_ad";
        }
        else if("action".equals(this.e.type)) {
            v0 = "detail_call";
        }
        else if("web".equals(this.e.type)) {
            v0 = "embeded_ad";
        }
        else {
            v0 = "";
        }

        return v0;
    }

    protected int getInflateLayoutId() {
        return R.layout.aa;
    }
}

